﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using OnlineShop.Common;

namespace OnlineShop.Models.ViewModels
{
    public class SearchAdvModel
    {
        public string KeyWord { get; set; }
        public List<CategoryModel> Category { get; set; }
        public List<PriceModel> MinPrice { get; set; }
        public List<PriceModel> MaxPrice { get; set; }

        public class PriceModel
        {
            public double Value { get; set; }
            public string Display { get; set; }

            public PriceModel(double value)
            {
                Value = value;
                Display = value.FormatUSD();
            }
        }
    }
}